package com.swt.testdemo.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.swt.testdemo.entity.StudentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author BleethNie
 * @date 2020-06-16 17:58:09
 */
@Mapper
@Repository
public interface StudentDao extends BaseMapper<StudentEntity> {
    List<StudentEntity> listStudent();

    IPage<StudentEntity> listStu(Page<StudentEntity> entityPage,
                                 @Param("stuNameFilter") String stuNameFilter,
                                 @Param("stuAgeFilter") String stuAgeFilter);



    StudentEntity getByStuId(@Param("stuId") Integer stuId);
}
